﻿#region [===== Using =====]
using System;
using System.Runtime.Serialization;
#endregion 

namespace TPG.SharePoint.Workflow
{
    /// <summary>
    /// A general class for exception raised by WSS3Workflow.
    /// </summary>
    [Serializable]
    public class WorkflowException 
        : ApplicationException
    {
        #region [===== Constructors =====]
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowException" /> 
        /// class.
        /// </summary>
        public WorkflowException() 
        { }
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowException" /> 
        /// class.
        /// </summary>        
        public WorkflowException(string message) 
            : base(message) 
        { }
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowException" /> 
        /// class.
        /// </summary>        
        public WorkflowException(string message, Exception inner) 
            : base(message, inner) 
        { }
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowException" /> 
        /// class.
        /// </summary>        
        protected WorkflowException(
          SerializationInfo info,
          StreamingContext context)
            : base(info, context) 
        { }
        #endregion
    }
}
